home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
doors_1
/
gut_200_.zip
/
DOORJAM.ZIP
/
DOORJAM.DOC
< prev
next >
Wrap
Text File
|
1991-01-22
|
5KB
|
151 lines
DOORJAM Version 1.1 for PCBoard 14.x
DOORJAM is a door lock for all door programs launched by .BAT files.
It prevents 2 nodes from opening the same door at the same time. If a
node attempts to open a locked door, an ERRORLEVEL of 1 will be returned.
DOORJAM goes one step further, if the system goes down while a door
is being played, DOORJAM will remove the lock during the next OPEN of
that door!!!
The system uses the following files:
DOORJAM.DOC This Documentation
DOORJAM.EXE The main program
DOORJAM.CNF Node Path list (up to 9 nodes)
DOORJAM.LOK The Lock (Created by the main program)
ECHOBACK.EXE Sends a file to the user's screen
LOCKED.CNF Sample ECHOBACK Configuration file
LOCKED. Sample ASCII screen
LOCKEDG. Sample ANSI screen
-------------------------------------------------------------------
How to code the DOORJAM.CNF file:
1) Edit the file with an ASCII editor.
2) Each line represents a node path where the PCBOARD.SYS file for
that node can be found.
3) Line 1 = Node 1 etc.
4) Be sure to end each line with a backslash (\).
5) File the DOORJAM.CNF in the same directory as the .EXE.
6) Place a copy of the CNF file in each directory that contains
a DOOR batch file. (usually one per node)
A typical DOORJAM.CNF might look like this:
c:\PCB\
d:\PCB2\
c:\TEST\PCB3\
In the above example, line 1 states that NODE 1 is at c:\PCB\, NODE 2
is at d:\PCB2\ and NODE 3 at c:\TEST\PCB3\. DOORJAM will currently use
up to nine(9) nodes for locking.
-------------------------------------------------------------------
How to code the ECHOBACK.CNF file:
1) Edit the file with an ASCII editor.
2) The Filename can be anything you like. (I recommend you make it
something relevant).
3) Line 1 MUST be INTERRUPT (Standard PROKIT command).
4) Line 2 is the path/filename of the screen to display. If you
want ANSI graphics to display (assuming the user can handle them)
just don't use a filename extention for the graphic file and make
sure the last letter of the filename is 'G'. In the supplied files
are 2 files call 'LOCKED' and 'LOCKEDG'. The are the ASCII/ANSI
display screens. Use these files like bulletins and menus!
An example of a useable .CNF is:
* * * Top of File * * *
INTERRUPT
C:\PCB\SCREENS\LOCKED
* * * End of File * * *
This file an be called anything so how about 'LOCKED.CNF'. To call
the screen code the BAT file like this:
ECHOBACK C:\DOORS\LOCKED.CNF C:\PCB
Where:
C:\DOORS\LOCKED.CNF is the Path/filename for the ECHOBACK Config file.
C:\PCB is where this node's PCBOARD.SYS is.
------------------------------------------------------------------
Syntax for DOORJAM:
Doorjam cmd x:\ y:\
Where: cmd = LOCK or UNLOCK
x:\ = Path where door program will be (and the lock).
y:\ = Path where current PCBoard.SYS file is.
Let's say you want to DOORJAM your TRIVIA door. Your TRIVIA door is
located on drive 'D:' in directory '\door\triv'. The user is on a node
that puts PCBOARD.SYS in directory 'c:\PCB'. To lock the door use:
"DOORJAM LOCK D:\DOOR\TRIV C:\PCB". To unlock the door when the user
is done with it code: "DOORJAM UNLOCK D:\DOOR\TRIV".
Coding a .BAT file.
echo off
DOORJAM LOCK c:\guppy c:\pcb (Lock the door in c:\guppy)
if errorlevel 1 Goto :skipit (ERRORLEVEL 1 means door WAS locked)
...
... execute the door here
...
DOORJAM UNLOCK c:\ (Make sure to UNLOCK it after play)
... Reload the board now
:skipit
ECHOBACK C:\DOORS\LOCKED.CNF C:\PCB
... Reload the board now
exit
REMEMBER: If ERRORLEVEL 1 then the door is locked by another node.
DO NOT execute the door! DO NOT UNLOCK this door from another node.
If for some reason the node that issued a lock crashes before the UNLOCK
command is issued do not worry. The next time the door is requested,
DOORJAM checks the LOK file and the node that issued it. If the node
and user don't match then the old LOK is removed and a new LOK issued.
========================================================================
Registration :
Price of DOORJAM: $5.00
Send Cash, Check or Gold to: PAUL MCGINNESS
C/O
ACC BBS
138 Fifth Ave, Suite 180
Pelham, NY, 10803
ATT: Paul McGinness
Contact me thru Relay-Net (COMMON).
========================================================================
Why Register DOORJAM when it works fine now?
Well, if you are one of those SYSOPs who never registers anything
then you won't bother with this either I'm sure. However, for the
majority of honest SYSOPs who find this program of value to them, there
is no reason other than I am saving up for an HST modem. While I am not
a SYSOP, I am an addicted DOOR player and QMAIL junkie.
The latest release of DOORJAM will always be available on the
following quailty BBS systems:
ACC BBS : 914-636-1455 : Skip Ross, SYSOP
The BRENTWOOD BBS: 914-835-7898 : Guy Cappello, SYSOP
I can also be reached through the RELAY-Net mail System (Use the
COMMON conference).
....Thanks
Paul McGinness